package com.ag.utils.vo;

import com.ag.utils.DoubleUtils;

/**
 * 
 * title: GeoCoordinate.java
 *
 * @author rplees
 * @email rplees.i.ly@gmail.com
 * @version 1.0
 * @created Jun 5, 2020 2:42:42 PM
 */
public class GeoCoordinate {
	// 经度
	protected Double lng;
	// 纬度
	protected Double lat;

	public static GeoCoordinate build(Object lng, Object lat) {
		GeoCoordinate location = new GeoCoordinate();
		location.setLng(DoubleUtils.parse(lng));
		location.setLat(DoubleUtils.parse(lat));
		return location;
	}

	public String getLngString() {
		return String.valueOf(lng);
	}
	
	public String getLatString() {
		return String.valueOf(lat);
	}
	
	public Double getLng() {
		return lng;
	}

	public void setLng(Double lng) {
		this.lng = lng;
	}

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}
}
